﻿using System.Configuration;

namespace Com.Pernix.Common.Log.Configs
{
    public class LogConfigurationCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new LogConfiguration();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((LogConfiguration)element).Name;
        }
        public LogConfiguration this[int index]
        {
            get { return base.BaseGet(index) as LogConfiguration; }
        }

        public new LogConfiguration this[string key]
        {
            get { return base.BaseGet(key) as LogConfiguration; }
        }
    }
}
